#前100个数的平方和与和的平方差
#先求前100个数的平方和
s = 0
for x in range (1,101):
    s = s + x*x
print(s)

m = 0
for y in range(1,101):
    m = m + y
print(m)

print(s - m)

